package com.sgcc.sx.pmos.common.bean;


import android.text.TextUtils;

import com.blankj.utilcode.util.GsonUtils;
import com.google.gson.reflect.TypeToken;
import com.sgcc.sx.pmos.common.utils.BigDecimalUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class ComputationBean extends BaseResponse implements Serializable {

    private Object data;

    public Object getData() {
        return data;
    }

    public static class Bean implements Serializable {
        private String packageId;//: "0b11fb5cb647456f86d039936620d607"
        private String packagePrice;//: 385.72
        private String peType;//: "02"
        private String pnum;//: "1"
        private String mainPrice;//": 382.47,
        private String floPeType;//": "01",
        private String mainPeType;//": "02",
        private String floPrice;//": 397.47

        public String getMainPrice() {
            return TextUtils.isEmpty(mainPrice) ? getPackagePrice() :BigDecimalUtils.onKeep5Decimal_divide(mainPrice)  + "元/度";
        }

        public void setMainPrice(String mainPrice) {
            this.mainPrice = mainPrice;
        }

        public String getFloPeType() {
            return floPeType;
        }

        public void setFloPeType(String floPeType) {
            this.floPeType = floPeType;
        }

        public String getMainPeType() {
            return mainPeType;
        }

        public void setMainPeType(String mainPeType) {
            this.mainPeType = mainPeType;
        }

        public String getFloPrice() {
            return TextUtils.isEmpty(floPrice) ? "--" : BigDecimalUtils.onKeep5Decimal_divide(floPrice) + "元/度";
        }

        public void setFloPrice(String floPrice) {
            this.floPrice = floPrice;
        }

        public String getPackageId() {
            return packageId;
        }

        public void setPackageId(String packageId) {
            this.packageId = packageId;
        }

        public String getPackagePrice() {
            return TextUtils.isEmpty(packagePrice) ? "--" : BigDecimalUtils.onKeep5Decimal_divide(packagePrice) + "元/度";
        }

        public void setPackagePrice(String packagePrice) {
            this.packagePrice = packagePrice;
        }

        public String getPeType() {
            return peType;
        }

        public void setPeType(String peType) {
            this.peType = peType;
        }

        public String getPnum() {
            return pnum;
        }

        public void setPnum(String pnum) {
            this.pnum = pnum;
        }
    }

}
